package com.sec.android.app.myfiles.module.abstraction;

import android.os.Environment;

import com.sec.android.app.myfiles.MyFilesTestRunner;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.io.File;


@RunWith(MyFilesTestRunner.class)

public class testFileRecord {
    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testCreateFileRecord() {
        File a = Environment.getExternalStorageDirectory();
        String path = a.getAbsolutePath();
        String full = path + "/MyTest";

        FileRecord record = FileRecord.createFileRecord(FileRecord.StorageType.Local, "/test/test/aa");
        Assert.assertNotNull(record);

        Assert.assertEquals("aa", record.getName());
        Assert.assertEquals("/test/test/aa", record.getFullPath());
    }
}
